/*
 * debugging.cpp
 *
 *  Created on: 29/dic/2012
 *      Author: Administrator
 *
 *  Questo file implementa l'header debugging.h
 */
#include <iostream>
using namespace std;

#include "eparticles.h"
#include "bodies.h"
#include "debugging.h"

void report::body(body &obj){
  cout << "Bodies List"<<endl;
  int c;
  for(c = 0;c<sizeof(obj);c++){
      cout <<"\tIndex = "<<c<<endl;
      cout <<"\t\tLimit +x = "<<obj[c].len_x<<endl;
      cout <<"\t\tLimit +y = "<<obj[c].len_y<<endl;
      cout <<"\t\tLimit +z = "<<obj[c].len_z<<endl;
      cout <<"\t\tLimit -x = "<<obj[c].len_nx<<endl;
      cout <<"\t\tLimit -x = "<<obj[c].len_ny<<endl;
      cout <<"\t\tLimit -x = "<<obj[c].len_nz<<endl;
      cout <<"\t\tUnit of measure = "<<obj[c].measure<<endl;
      cout <<"\t\tEr = "<<obj[c].Er<<endl;
  }
}

void report::particle(particle &obj){
  int c;
  cout << "Particles List"<<endl;
  for(c = 0;c<sizeof(obj);c++){
      cout <<"\tIndex = "<<c<<endl;
      cout <<"\t\tSign = ";
      if(obj[c].sign){cout<<"+"<<endl;}else{cout<<"-"<<endl;}
      cout <<"\t\tPosition x = "<<obj[c].pos_x<<endl;
      cout <<"\t\tPosition y = "<<obj[c].pos_y<<endl;
      cout <<"\t\tPosition z = "<<obj[c].pos_z<<endl;
      cout <<"\t\tColumb = "<<obj[c].columb<<endl;
  }

}


